package com.jingyuan.client;

import com.jingyuan.common.entity.packet.RegistPacket;

public class NettyHarmonyServiceImplTest {
    public static void main(String[] args) throws Exception {
        NettyHarmonyServiceImpl nettyHarmonyService = new NettyHarmonyServiceImpl();
        nettyHarmonyService.init();
        RegistPacket registPacket = new RegistPacket();
        //InetAddress address=LocalAddressUtil.getLocalAddress();
        PropertiesUtil readUtil=PropertiesUtil.getPropertiesUtil();
        registPacket.setAddress(readUtil.getHostAddress());
        registPacket.setPort(readUtil.getPort());
        Thread.sleep(2000);
        nettyHarmonyService.online(registPacket);
    }

}
